package com.example.store2024.service.impl;

import com.example.store2024.dao.CartDao;
import com.example.store2024.model.Cart;
import com.example.store2024.service.CartService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
@Service
public class CartServiceImpl implements CartService {
    private CartDao cartDao;

    @Autowired
    public void setCartDao(CartDao cartDao) {
        this.cartDao = cartDao;
    }

    @Override
    public List<Cart> findAll() {
        return this.cartDao.findAll();
    }
}
